package com.cdut.logistics.service.interf.businesses;

import java.util.List;








import com.cdut.logistics.model.dao.datacentre.Area;
import com.cdut.logistics.model.entity.Model.Academy;
import com.cdut.logistics.model.entity.Model.Dorm;
import com.cdut.logistics.model.entity.Model.Major;
import com.cdut.logistics.model.entity.Model.User;

public interface UserService {
	/**
	 * 
	 * @param name
	 * @return
	 */
	 public  boolean query(String name);
	 
	 /**
	  * 
	  */
	 public  boolean query(String name,String password);
	 
	 public  int sign(String name,String password,String sex,String phone,int school_id,int academy_id,int major_id,int dorm_id);
	 
	 public  List<Academy> Search_Academy(int school_id);
	 
	 public  List<Major> Search_Major(int school_id);
	 
	 public  List<Area> Search_Area(int school_id);

	public List<Dorm> Search_Dorm(int school_id, int area_id);


	public void addAccess_token(String access_token, String name); 
}
